<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>用户信息列表</title>
  </head>
  <body>

 <div style="text-align: center">
      <table border="1" cellpadding="1" cellspacing="1" style="margin: auto">
          <tr>
              <th>id</th>
              <th>姓名</th>
              <th>密码</th>
              <th>性别</th>
              <th>单位</th>
              <th>地址</th>
              <th>电话</th>
              <th>邮箱</th>
              <th>操作</th>
          </tr>

          <c:forEach items="${users}" var="user">
             <tr align="center">
                  <td>${user.userid}</td>
                  <td>${user.uname}</td>
                  <td>${user.upwd}</td>
                  <td>${user.usex}</td>
                  <td>${user.uwork}</td>
                  <td>${user.uaddress}</td>
                  <td>${user.uphone}</td>
                  <td>${user.uemail}</td>
                  <td>
                      <a href="/UsersServlet?method=edit&userid=${user.userid}">修改</a>
                      ||
                      <a href="/UsersServlet?method=delete&userid=${user.userid}">删除</a>
                  </td>
             </tr>
          </c:forEach>
      </table>
 </div>
  </body>
</html>
